/* 
 * Copyright (c) 2014 zepolar.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    zepolar - initial API and implementation and/or initial documentation
 */
package ec.gob.magap.model.general;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import ec.gob.magap.model.general.enumeration.EnumGender;
import ec.gob.magap.model.general.enumeration.EnumIdentificationType;

/**
 *
 * @author zepolar
 */
public class Person implements Serializable {
	
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private Long id;
	
	private String names;
	
	private String lastName;
	
	@Enumerated(EnumType.STRING)
	private EnumIdentificationType identificationType;
	
	@Column(nullable=false)
	private String numberIdentification;
	
	@Enumerated(EnumType.STRING)
	private EnumGender gender;
	
	private Date birthday;

}
